package com.example.controller;

import com.example.service.FoodService;
import com.example.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/food")
public class FoodController {

    @Autowired
    FoodService foodService;

    @GetMapping("/getFoodByShopId")
    public Result getFoodByShopId(Integer shopId) {
        return Result.ok(foodService.getFoodByShopId(shopId));
    }
}
